setAttribute Method in Javascript